package pkg

import (
	"github.com/astaxie/beego/validation"
)

type user struct {
	Mobile string
}

func Form(mobile string) {
	u := user{mobile}
	valid := validation.Validation{}
	valid.Length(u.Mobile, 11, mobile).Message("手机号格式错误")
}
